#include <iostream>

static inline double square(double x)
{
	return x * x;
}

int main(int argc, const char * argv[])
{
	using namespace std;
	cout << "square function implemented by inline\n";
	cout << "square(3.0) = " << square(3.1) << endl;
	cout << "square(4.0) = " << square(4.0) << endl;
	cout << "square(5.0) = " << square(5.0) << endl;
	return 0;
}